package cn.fintecher.pangolin.service.dataimp.elastic;

import cn.fintecher.pangolin.entity.elastic.StopCaseModel;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Auther: xiaqun
 * @Description:
 * @Date: 15:05 2019/10/15
 */
public interface StopCaseModelElastic extends ElasticsearchRepository<StopCaseModel, String> {
    /**
     * 根据批次号删除
     */
    void deleteAllByBatchNumber(String batchNumber);

    /**
     * 根据批次号查询
     */
    List<StopCaseModel> findAllByBatchNumber(String batchNumber);
}
